test: live cluster resharding coverage - #13
Closed
Elijas wants to merge 2 commits into
Closed
Conversation
Add tests/test_integration_cluster_resharding.py: performs a real CLUSTER SETSLOT + MIGRATE handshake on the multi-node CI cluster while a lease is outstanding, then drives lease renewal, ack, and a fresh publish/claim cycle through the gateway, pinning redis-py's transparent MOVED-following below client.eval. Gated on REDIS_CLUSTER_URL like its siblings; migrates the slot back afterwards so cluster state stays clean. Wire the new file into the real-redis-cluster CI job.
The cluster-coverage bullet now reflects that transparent MOVED-following during a live slot migration is exercised in CI, narrowing the remaining gap to partial/failed-migration redirects, multi-slot resharding storms, and the exhausted-redirect-retries degraded path (simulation-only).
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a live slot-migration (resharding) integration test against the real multi-node CI cluster: CLUSTER SETSLOT + MIGRATE handshake while a lease is outstanding, then lease renewal, ack, and a fresh claim through the gateway — pinning redis-py's transparent MOVED-following below client.eval. Gated on REDIS_CLUSTER_URL; wired into the real-redis-cluster CI job. Draft for CI proof only — do not merge via GitHub; the orchestrator merges locally.